From: Giovanni Campagna Date: Wed, 20 Oct 2010 19:15:24 +0000 (+0200) Subject: Fix showing input volume X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9633 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fe1a9c2b4b4fee9ccb7e523db1cd2cecca148e86;p=gnome-shell.git Fix showing input volume Fix two typos in code that decided whether to show input volume and mute switch. --- diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index 48cb6a399..8753c718b 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -117,9 +117,9 @@ Indicator.prototype = { // only show input widgets if any application is recording audio let showInput = false; let recordingApps = this._control.get_source_outputs(); - if (this._source && recordingApps) { - for (let i = 0; i < recordingApp.length; i++) { - let outputStream = recordingApp[i]; + if (this._input && recordingApps) { + for (let i = 0; i < recordingApps.length; i++) { + let outputStream = recordingApps[i]; let id = outputStream.get_application_id(); // but skip gnome-volume-control and pavucontrol // (that appear as recording because they show the input level)